/* mobile.css - 移动端响应式样式 */

@media (max-width: 768px) {
    /* 调整间距 */
    :root {
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
    }
    
    .hero {
        padding: var(--spacing-xl) 0;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    /* 头部导航 */
    .header__inner {
        height: 60px;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-surface);
        z-index: 100;
        transition: right 0.3s ease;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav__item {
        width: 100%;
    }
    
    .nav__link {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--color-border);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active .mobile-menu-toggle__line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active .mobile-menu-toggle__line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .mobile-menu-toggle__line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* 隐藏桌面导航 */
    .nav__list {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* 按钮组垂直排列 */
    .hero__actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .btn {
        width: 100%;
    }
    
    /* 特性网格 */
    .features__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .feature {
        padding: var(--spacing-lg);
    }
    
    /* 服务网格 */
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    /* 页脚网格 */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer__legal {
        justify-content: center;
    }
}